package cn.edu.sgu.www.mhxysy.service.wenshi.impl;

import cn.edu.sgu.www.mhxysy.entity.wenshi.WenshiCategory;
import cn.edu.sgu.www.mhxysy.mapper.wenshi.WenshiCategoryMapper;
import cn.edu.sgu.www.mhxysy.service.wenshi.WenshiCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class WenshiCategoryServiceImpl implements WenshiCategoryService {

	private final WenshiCategoryMapper wenshiCategoryMapper;

	@Autowired
	public WenshiCategoryServiceImpl(WenshiCategoryMapper wenshiCategoryMapper) {
		this.wenshiCategoryMapper = wenshiCategoryMapper;
	}

	@Override
	public List<WenshiCategory> selectAll() {
		return wenshiCategoryMapper.selectList(null);
	}

	@Override
	public WenshiCategory selectById(Integer id) {
		return wenshiCategoryMapper.selectById(id);
	}

}